package com.mla.fastdfs.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.mla.fastdfs.dto.RoleDto;
import com.mla.fastdfs.dto.UserDto;
import com.mla.fastdfs.pojo.User;

import java.util.List;

public interface UserService extends IService<User> {

    User getByName(String username);

    User getUser(String token);

    RoleDto getByRole(String id);

    boolean checkUserNameExist(User user);

    void adminInsert(UserDto record);

    void adminUpdate(UserDto record);

    UserDto selectById(String id);

    PageInfo<UserDto> pageList(UserDto record, Integer pageNo, Integer pageSize);

    List<User> getList(User record);

    void updateUser(User user);
}
